<?php

namespace app\exception;
 use app\model\Orders;
 use think\Exception;
 use think\facade\Log;
 use Throwable;

 class NotifyException extends Exception
{

    protected Orders|null $order;

     public function getOrder(): Orders|null
     {
         return $this->order;
     }

     public function setOrder(Orders|null $order): void
     {
         $this->order = $order;
     }
    public function __construct(string $message = "", ?Orders $order=null)
    {
        $this->setOrder($order);
        parent::__construct($message);
    }


    
 }